package in.muton.edushare.panels;

import in.muton.edushare.EduShareSession;
import in.muton.edushare.pages.EduShareBasePage;
import in.muton.edushare.panels.upload.uploadify.UploadifyBehavior;
import in.muton.edushare.panels.upload.uploadify.UploadifyPanel;
import in.muton.edushare.panels.upload.uploadify.demo.UploadifyDemoProcessingPage;
import in.muton.edushare.poll.panels.AttendancePanel;

import java.io.IOException;
import java.util.Date;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.wicket.RequestCycle;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.link.ExternalLink;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.ListView;
import org.apache.wicket.model.Model;
import org.apache.wicket.protocol.http.WebRequest;

import com.edushare.common.backup.SystemBackupUtils;
import com.edushare.common.dao.SystemBackupDAO;
import com.edushare.common.exceptions.EduShareRuntimeException;
import com.edushare.common.util.DateTimeUtil;
import com.edushare.common.vo.CourseInstances;
import com.edushare.common.vo.SystemBackup;

public class PanelTestPage extends EduShareBasePage {
	
	private static Log log = LogFactory.getLog(PanelTestPage.class);
	private List<String> urls;
	
	public PanelTestPage(){
		/*String sessionId = EduShareSession.get().getId();
		UploadifyBehavior uplodifyBehav = new UploadifyBehavior(UploadifyDemoProcessingPage.class, sessionId);
		uplodifyBehav.setFileExt("*.jpg;*.rar;*.pdf");
		uplodifyBehav.setFileDesc("We support three types only!");
		uplodifyBehav.setSizeLimit(""+100*1000*1000);
		add(new UploadifyPanel("testDiv", this, uplodifyBehav));*/
		
		add(new AttendancePanel("testDiv", new Model<CourseInstances>(null), this));
		
	}

	@Override
	public String getPageTitle() {
		return "TEST PAGE";
	}

	@Override
	public String getUserRole() {
		return "Tester";
	}
	
}
